package com.itheima008;

public class Test {
    public static void main(String[] args) {

        Dog dog = new Dog("ll",10);
        System.out.println(dog.getName()+":"+dog.getAge());
        dog.eat();
        dog.swim();

        Rablit r=new Rablit("ii",4);
        System.out.println(r.getName()+":"+r.getAge());
        r.eat();

    }
}
